package com.example.bookmapper.controller;

import com.example.bookmapper.pojo.AdsPublishTrendAnalysis;
import com.example.bookmapper.service.AdsPublishTrendAnalysisService;
import com.example.bookmapper.util.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class AdsPublishTrendAnalysisController {
    @Autowired
    private AdsPublishTrendAnalysisService adsPublishTrendAnalysisService;

    @GetMapping("/queryAllAdsPublishTrendAnalysis")
    public ResponseResult<List<AdsPublishTrendAnalysis>> queryAllAdsPublishTrendAnalysis() {
        List<AdsPublishTrendAnalysis> adsPublishTrendAnalyses = adsPublishTrendAnalysisService.queryAllAdsPublishTrendAnalysis();
        return new ResponseResult<>("200", "查询成功", adsPublishTrendAnalyses);
    }
}
